function jam(target){
    dt=new Date();
    day=dt.getDay();
    switch (day){
        case 0:
            day="Minggu";
            break;
        case 1:
            day="Senin";
            break;
        case 2:
            day="Selasa";
            break;
        case 3:
            day="Rabu";
            break;
        case 4:
            day="Kamis";
            break;
        case 5:
            day="Jumat";
            break;
        case 6:
            day="Sabtu";
            break;
    }
    date=dt.getDate();
    if(date<10){
        date="0"+date;
    }
	
    month=eval(dt.getMonth())+1;
    if(month<10){
        month="0"+month;
    }
   
    year=dt.getFullYear();
    h=dt.getHours();
    if(h<10){
        h= "0"+h;
    }
   
    m=dt.getMinutes();
    if(m<10){
        m= "0"+m;
    }
	
    s=dt.getSeconds();
    if(s<10){
        s="0"+s;
    }
    document.getElementById(target).innerHTML=day+", "+date+"-"+month+"-"+year+" "+h+":"+m+":"+s;
    setTimeout("jam('"+target+"')",1000);
}